package com.arc.spring.entity;

import lombok.Data;
import lombok.ToString;

@Data
@ToString
public class Student {

    private Integer id;
    private String name;
    private Integer age;
    private String gender;
    private Double score;
    private Teacher teacher;

    public Student() {
        System.out.println(this.getClass().getName() + " NoArgsConstructor");
    }

    public Student(Integer id, String name, Integer age, String gender) {
        System.out.printf("%s Constructor: id=%s, name=%s, age=%s, gender=%s%n",
                this.getClass().getName(), id, name, age, gender);
        this.id = id;
        this.name = name;
        this.age = age;
        this.gender = gender;
    }

    public Student(Integer id, String name, String gender, Double score) {
        System.out.printf("%s Constructor: id=%s, name=%s, gender=%s, score=%s%n",
                this.getClass().getName(), id, name, gender, score);
        this.id = id;
        this.name = name;
        this.gender = gender;
        this.score = score;
    }

}
